package com.ah.hf;

import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.transaction.annotation.EnableTransactionManagement;

//日志
@Slf4j
//启动类
@SpringBootApplication
//mybatisPlus扫描器
@MapperScan(basePackages = "com.ah.hf.mapper")
//过滤器扫描器
@ServletComponentScan(basePackages = "com.ah.hf.filter")
//开启事务注解
@EnableTransactionManagement
public class Application {
    public static void main(String[] args) {
        SpringApplication.run(Application.class,args);
        log.info("启动成功");
    }
}
